<template>
	<view class="study-card hor-center">
		<view class="space-between full">
			<view class="both-center">
				<image class="left" :src="data.studyimg" mode="aspectFill"></image>
			</view>
			<view class="right col ver-center">
				<view class="title">
					{{ data.studyname }}
				</view>			
				<view class="info text-overflow text-overflow1">
					{{ data.leader }} <i>|</i> {{ data.leanernum}}+人加入学习
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "study-card",
		data() {
			return {
				
			}
		},
		props:{
			data:Object
		}
	}
</script>

<style scoped>
	.study-card {
		width: 100%;
		height: 98px;
		background: #fff;
	}
	
	.left {
		width: 16vw;
		height: 16vw;
		border-radius: 1vh;
		background: #D8D8D8;
	}
	
	.right {
		width: calc(100% - 75px);
		display: flex;
		justify-content: space-evenly;
	}
	
	.title {
		font-family: PingFangSC-Semibold;
		font-size: 16px;
		font-weight: 700;
		line-height: 20px;
		letter-spacing: 0px;
	}
	
	.info {
		font-size: 14px;
		font-weight: 700;
		line-height: 20px;
		color: #aaa;
	}
	.info i {
		font-style: normal;
		margin: 0 2vw;
	}
</style>